import Vue from "vue";

export default {
  state: {
    theme: '',//dark | light
    isSetFullScreen: 0,
    isVMenuCollapse:0,
    documentHeight:0,
    isSettingStatus:true,
    isShowingHelp:false,//是否显示帮助,
    headerTipContent: {
      top:'',
      center:''
    },
    currentClickHeaderTip:{
      type:'',
      content:'',
      index:'',
    },
    isOutOfInternet:false,
    clickCountInfos:'',
  },
  mutations: {
    SET_THEME: (state, theme) => {
      state.theme = theme;
    },
    SET_IS_FULL_SCREEN: (state) => {
      state.isSetFullScreen++;
    },
    SET_IS_VMENU_COLLAPSE: (state) => {
      state.isVMenuCollapse++;
    },
    SET_DOCUMENT_HEIGHT:(state,height)=>{
      state.documentHeight = height
    },
    SET_SETTING_STATUS:(state)=>{
      state.isSettingStatus = !state.isSettingStatus
    },
    SET_IS_SHOWING_HELP:(state,help)=>{
      state.isShowingHelp = help
    },
    SET_HEADER_TIP_TOP_CONTENT:(state,headerTipContent)=>{
      state.headerTipContent.top = headerTipContent
    },
    SET_HEADER_TIP_CENTER_CONTENT:(state,headerTipContent)=>{
      state.headerTipContent.center = headerTipContent
    },
    SET_CURRENT_CLICK_HEADER_TIP(state,info){
      state.currentClickHeaderTip = info
    },
    SET_IS_OUT_OF_INTERNET(state,isOutOfInternet){
      state.isOutOfInternet = isOutOfInternet
    },
    SET_CLICK_COUNT_INFOS(state,infos){
      state.clickCountInfos = infos
    },
  },
  actions: {
  },
};
